package jenamuseum.annotation;


import android.content.Context;
import android.content.Intent;
import annotation.display.videoPlayer;
public class AnnotationVideo extends AnnotationBase{
	private String description;
	private String auteur;
	private String url;
	private String type;
	
	public AnnotationVideo() {
		
	}
	
	public AnnotationVideo(String d, String a, String u, String t) {
		description = d;
		auteur=a;
		url=u;
		type=t;
	}
	public String getArtwork()
	{
		return auteur;
		
	}
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getAuteur() {
		return auteur;
	}

	public void setAuteur(String auteur) {
		this.auteur = auteur;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Override
	public String toString() {
		return "Annotation [ description=" + description
				+ ", auteur=" + auteur + ", url=" + url + ", type=" + type
				+ "]";
	}

	@Override
	public String getAuthor() {
		// TODO Auto-generated method stub
		return "Toto";
	}

	@Override
	public String getTitle() {
		// TODO Auto-generated method stub
		return url;
	}


	@Override
	public void showAnnotation(Context context) {
		// TODO Auto-generated method stub
		Intent launchVideo = new Intent(context, videoPlayer.class);
		launchVideo.putExtra("video", getUrl());
		launchVideo.putExtra("description", getDescription());
		context.startActivity(launchVideo);
}


}
